package pers.cz.logtail.holder;

import java.io.File;

/**
 * @program: JefLogTail
 * @description: 文件行数记录器
 * @author: Cheng Zhi
 * @create: 2023-03-24 12:35
 **/
public class FileBlockNote {

    private long startLine;
    private long endLine;
    private String fileName;
    private File file;

    public long getStartLine() {
        return startLine;
    }

    public void setStartLine(long startLine) {
        this.startLine = startLine;
    }

    public long getEndLine() {
        return endLine;
    }

    public void setEndLine(long endLine) {
        this.endLine = endLine;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public File getFile() {
        return file;
    }

    public void setFile(File file) {
        this.file = file;
    }

    @Override
    public String toString() {
        return "startLines:" + startLine + " endLines:" + endLine + " fileName:" + fileName + " fileSize:" + file.length();
    }
}
